﻿<Window x:Class="CPPEI.Coolzon.Designer.Views.SceneProperty"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:CPPEI.Coolzon.Designer.Views"
        mc:Ignorable="d"
        Title="场景属性"  Height="300" Width="400" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Loaded="Window_Loaded"
        Style="{DynamicResource WindowStyle}" KeyDown="Window_KeyDown" >

    <Grid>
        <Grid.Resources>
            <Style TargetType="TextBlock">
                <Setter Property="HorizontalAlignment" Value="Right" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="Height" Value="16" />
                <Setter Property="Margin" Value="0,12" />
            </Style>
            <Style TargetType="TextBox">
                <Setter Property="VerticalContentAlignment" Value="Center" />
                <Setter Property="HorizontalAlignment" Value="Left" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="Width" Value="174" />
                <Setter Property="Height" Value="30" />
                <Setter Property="Margin" Value="3,5,0,5" />
            </Style>
            <Style TargetType="ComboBox">
                <Setter Property="VerticalContentAlignment" Value="Center" />
                <Setter Property="Width" Value="174" />
                <Setter Property="Height" Value="30" />
                <Setter Property="HorizontalAlignment" Value="Left" />
                <Setter Property="VerticalAlignment" Value="Center" />
                <Setter Property="Margin" Value="3,5,0,5" />
            </Style>
            <Style TargetType="Button">
                <Setter Property="Width" Value="74" />
                <Setter Property="Height" Value="22" />
            </Style>
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition Name="_RDID" Height="0"></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <GridSplitter Grid.ColumnSpan="2" Grid.Row="2"/>
        <TextBlock x:Name="faID" Text="ID：" Grid.Column="0" Grid.Row="0" Visibility="Collapsed"/>
        <TextBox IsReadOnly="True" x:Name="tbID" Text="" Grid.Column="1" Grid.Row="0" Width="260"/>
        <TextBlock x:Name="faName" Text="名 称：" Grid.Column="0" Grid.Row="1" />
        <TextBlock x:Name="faTitle" Text="标 题：" Grid.Column="0" Grid.Row="2" />
        <TextBlock x:Name="faType" Text="是否显示在导航上：" Grid.Column="0" Grid.Row="3" />
        <TextBlock x:Name="faSwap" Text="是否允许移动区域：" Grid.Column="0" Grid.Row="4" />

        <TextBlock x:Name="tbName" Grid.Column="1" Grid.Row="1" Text="场景1" HorizontalAlignment="Left" />
        <TextBlock x:Name="tbTitle" Grid.Column="1" Grid.Row="2" Text="场景1" HorizontalAlignment="Left" />
        <ComboBox x:Name="cbShowNavigate" Grid.Column="1" Grid.Row="3" IsEnabled="False" >
            <ComboBoxItem Content="是" IsSelected="True"></ComboBoxItem>
            <ComboBoxItem Content="否"></ComboBoxItem>
        </ComboBox>

        <ComboBox x:Name="cbAllowSwap" Grid.Column="1" Grid.Row="4" IsEnabled="False">
            <ComboBoxItem Content="是" IsSelected="True"></ComboBoxItem>
            <ComboBoxItem Content="否"></ComboBoxItem>
        </ComboBox>

        <Grid Grid.Row="5" Grid.ColumnSpan="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>

            <Button Style="{DynamicResource  SubmitOrCancelButtonStyle}" Width="75" Height="25" x:Name="btnSubmit" Grid.Column="0" Grid.Row="0"  HorizontalAlignment="Center" Content="确 定" Click="btnSubmit_Click"  />
        </Grid>
    </Grid>
</Window>
